<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>志愿之星</title>
    <link rel="stylesheet" type="text/css" href="__CSS__api.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__aui.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__dropload.css" />

    <style>
        .warrp{
            width: 100%;
            height: 100%;
            padding: 1rem 0.7rem 0 0.75rem;
            background-color: #fff;
        }
        .tilte{
            font-size:0.85rem;
            color:rgba(51,51,51,1);
            line-height:0.6rem;
            font-weight: 600;
        }
        .content{
            width: 100%;
            height: 2.5rem;
            line-height: 2.5rem;
            display: flex;
            justify-content: space-between;
            text-align: center;
        }
        .name{
            font-size:0.75rem;
            color:rgba(153,153,153,1);
        }
        .xinxi{
            font-size:0.75rem;
            color:#333333;
        }
        .tu{
            width: 100%;
            padding: 0.7rem 3.5rem 1rem 4.3rem;
        }


        .activity{
            padding:0.7rem 0.7rem 0.75rem 0.7rem;
            background:#fff;
        }
        .jian{
            padding-bottom:0.7rem;
        }
        .activityImg{
            width:4.825rem;
            height:4.825rem;
            border-radius:0.3rem;
            margin-right:0.8rem;
        }
        .showImg{
            width:100%;
            height:100%;
        }
        .activityContent{
            height:4.825rem;
            position:relative;
        }
        .activityTitle{
            color:#333;
            font-size:0.8rem;
            margin-bottom:0.2rem;
        }
        .box{
            margin-bottom:0.25rem;
            height:0.65rem;
            line-height: 0.65rem;
            display: flex;
            align-items: center;
        }
        .destination,.activityTime{
            color:#999;
            font-size:0.65rem;
        }
        .logo1{
            width:0.65rem;
            height:0.65rem;
            background: url('__IMG__location.png') no-repeat center center;
            background-size:100% 100%;
            margin-right:0.2rem;
        }
        .logo2{
            width:0.65rem;
            height:0.65rem;
            background: url('__IMG__clock.png') no-repeat center center;
            background-size:100% 100%;
            margin-right:0.2rem;
        }
        .report{
            width:100%;
            position:absolute;
            bottom:0;
        }
        .reportDetail{
            width:3rem;
            height:0.95rem;
            line-height:0.95rem;
            font-size:0.5rem;
            color:#CFCECE;
            text-align:center;
            border-radius:3px;
            position:relative;
        }
        .reportDetail:after{
            content: '';
            width: 200%;
            height: 200%;
            position: absolute;
            top:0;
            left:0;
            border: 1px solid #d6e4ed;
            -webkit-transform-origin: 0 0;
            transform-origin: 0 0;
            -webkit-transform: scale(.5,.5);
            transform: scale(.5,.5);
            -webkit-box-sizing: border-box;
            box-sizing: border-box
        }
        .signUp{
            text-align: right;
            font-size:0.65rem;
            color:#FFBA71;
        }
        .signUp2 {
            text-align: right;
            font-size: 0.65rem;
            color: #999;
            padding-top: 1rem;
        }

        .signUp1 {
            text-align: right;
            font-size: 0.65rem;
            color: #24A8FC;
            padding-top: 1rem;
        }
        .xian{
            width:0.75rem;
            height:0.75rem;
            display:inline-block;
            vertical-align: middle;
        }
        .moreActivity{
            width:100%;
            height:2.7rem;
            line-height: 2.7rem;
            color:#999;
            font-size:0.7rem;
            text-align: center;
        }
        .juli{
            margin-bottom:0.5rem;
        }
    </style>
    <style>
        .aui-bar-nav .aui-iconfont {
            position: relative;
            font-family: "aui_iconfont" !important;
            font-size: 0.75rem;
            color: #E73C5C;
            font-style: normal;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            height: 2.4rem;
        }

        .aui-bar-nav {
            background-color: #fff;
        }

        .aui-icon-tu {
            height: 2.4rem;
            width: 49px;
            background: url('__IMG__left.png') no-repeat 0.5rem center;
            background-size: 22px 22px;
        }

        .aui-bar-nav .aui-pull-right {
            padding-right: 0.75rem;
        }

        .aui-bar-nav .aui-title {
            font-size: 0.9rem;
            color: #333333;
            font-weight: 500;
        }
    </style>
</head>

<body>
<header class="aui-bar aui-bar-nav underLine" style="padding-top:25px;" id="header">
    <a class="aui-pull-left" tapmode="active" onclick="history.go(-1)"> <span class="aui-iconfont aui-icon-tu"> </span> </a>
    <div class="aui-title">志愿之星</div>
</header>
<div class="warrp">
    <div class="tilte">
        基本信息
    </div>
    <div class="content underLine" style="margin-top: 0.2rem;">
        <div class="name">
            姓名
        </div>
        <div class="xinxi">
            {$list['user']['user_rel_name']}
        </div>
    </div>


    <div class="content underLine" style="margin-top: 0.2rem;">
        <div class="name">
            所属机构
        </div>
        <div class="xinxi">
            {$list['user']['mechanism_name']}
        </div>
    </div>

    <div class="content" style="margin-top: 0.2rem;">
        <div class="name">
            所在社区
        </div>
        <div class="xinxi">
            {$list['user']['shi']}
        </div>
    </div>
</div>


<div class="warrp" style="margin-top:0.5rem">
    <div class="tilte">
        公益历程
    </div>
    <div class="content underLine" style="margin-top: 0.2rem;">
        <div class="name">
            志愿者活动时长
        </div>
        <div class="xinxi">
           {$list['time']}
        </div>
    </div>
    <div class="content underLine" style="margin-top: 0.2rem;">
        <div class="name">
            参加活动次数
        </div>
        <div class="xinxi">
            {$list['num']}次
        </div>
    </div>

    <div class="content" style="margin-top: 0.2rem;">
        <div class="name">
            获得荣誉
        </div>
        <div class="xinxi">
            {$list['welfare']}
        </div>
    </div>
</div>

<div class="warrp" style="margin-top:0.5rem">
    <div class="tilte">
        执业信息
    </div>
    <div class="content underLine" style="margin-top: 0.2rem;">
        <div class="name">
            执业医院
        </div>
        <div class="xinxi">
            {$list['hospital']}
        </div>
    </div>


    <div class="content underLine" style="margin-top: 0.2rem;">
        <div class="name">
            所属科室
        </div>
        <div class="xinxi">
            {$list['department']}

        </div>
    </div>

    <div class="content" style="margin-top: 0.2rem;">
        <div class="name">
            职称
        </div>
        <div class="xinxi">
            {$list['title']}

        </div>
    </div>
    <div class="content" style="margin-top: 0.2rem;">
        <div class="name">
            职务
        </div>
        <div class="xinxi">
            {$list['post']}

        </div>
    </div>
</div>




<div class="warrp" style="margin-top:0.5rem">
    <div class="tilte">
        执业证书
    </div>
    {volist  name="img" id="vo"}
    <div class="tu">
        <img src="{$vo}" alt="">
    </div>
    {/volist}

</div>

<div class="activity" style="margin-top:0.5rem">
    <div class="activityName" style="font-weight:600;font-size:0.85rem">这里是活动</div>
      <div class="upOrDown">
        <div class="upOrDown_data">
            {volist name="list['join']" id="vv"}
            <div class="activityDetails jian flex-wrap underLine" onclick="fnActive(this)" idd="{$vv.id}" style="margin-top:0.5rem">
                <div class="activityImg"><img src="{$vv.activity_img}" class="showImg"></div>
                <div class="activityContent flex-con">
                    <div class="activityTitle aui-ellipsis-1">{$vv.activity_name}</div>
                    <div class="box">
                        <div class="logo1"></div>
                        <div class="destination aui-ellipsis-1">{$vv.activity_address}</div>
                    </div>
                    <div class="box">
                        <div class="logo2"></div>
                        <div class="activityTime">{$vv.activity_start_time}至{$vv.activity_end_time}</div>
                    </div>

                    <div class="report flex-wrap">
                        {if $vv.activity_status==1}
                        <div class="signUp2 flex-con">
                            <img src="" alt="" class="xian">未开始
                        </div>
                        {elseif $vv.activity_status==2 /}
                        <div class="signUp flex-con">
                            <img src="__IMG__xian.png" alt="" class="xian">报名中
                        </div>
                        {elseif $vv.activity_status==3 /}
                        <div class="signUp1 flex-con">
                            <img src="__IMG__main1_jin.png" alt="" class="xian">进行中
                        </div>
                        {else /}
                        <div class="signUp2 flex-con">
                            <img src="" alt="" class="xian">已结束
                        </div>
                        {/if}
                    </div>
                </div>
            </div>
            {/volist}
        </div>
      </div>
</div>
</body>
<script type="text/javascript" src="__JS__jquery.min.js"></script>
<script type="text/javascript" src="__JS__dropload.min.js"></script>
<script type="text/javascript" src="__JS__api.js"></script>
<script type="text/javascript" src="__JS__tt.js"></script>
<script type="text/javascript" src="__JS__doT.min.js"></script>
<script type="text/javascript" src="__JS__aui-lazyload.js"></script>
<script>
    function fnActive(el){
        var idd = $api.attr(el,'idd')
        location.href = '{:url("First/activitydatail")}?activity_id='+idd;
    }
</script>
<script>
    var page = 1;

    /**
     * 上拉加载，下拉刷新
     */
    var dropload = $('.upOrDown').dropload({
        scrollArea : window,
        autoLoad : true,
//        domUp : {
//            domClass   : 'dropload-up',
//            domRefresh : '<div class="dropload-refresh">↓下拉刷新-自定义内容</div>',
//            domUpdate  : '<div class="dropload-update">↑释放更新-自定义内容</div>',
//            domLoad    : '<div class="dropload-load"><span class="loading"></span>加载中-自定义内容...</div>'
//        },
//        domDown : {
//            domClass   : 'dropload-down',
//            domRefresh : '<div class="dropload-refresh">刷新</div>',
//            domLoad    : '<div class="dropload-load"><span class="loading"></span>加载中...</div>',
//            domNoData  : '<div class="dropload-noData">无数据</div>'
//        },
        loadDownFn : function(me){
            var keyword = $('input[name="keyword"]').val();
            page++;
            $.ajax({
                url:'{:url("First/ajaxvolunteerdetail")}',
                data:'page='+page,//
                type:'POST',
                dataType:'JSON',
                success: function(data){
                    var arrLen = data.msg.length;
                    if(arrLen<=0){

                        me.lock();
//                         无数据
                        me.noData(true);
                        // 每次数据加载完，必须重置
                        me.resetload();
                    }else{
                        var datas = data.msg;
                        $.each(datas,function(key,v){
                            var _html='';

                            _html +='<div class="activityDetails flex-wrap underLine2 cooc" id="'+v.id+'" tapmode="acdtive">';
                            _html +='<div class="activityImg">'+
                                    '<img src="'+v.activity_img+'" class="showImg">'+
                                    '</div>';
                            _html +='<div class="activityContent flex-con">';
                            _html +='<div class="activityTitle aui-ellipsis-1">'+v.activity_name+'</div>';
                            _html +='<div class="box">';
                            _html +='<div class="logo1"></div>';
                            _html +='<div class="destination aui-ellipsis-1">'+v.activity_address+'</div></div>';
                            _html +='<div class="box"> <div class="logo2"></div>';
                            _html +='<div class="activityTime">'+v.activity_start_time+'至'+v.activity_end_time+'</div></div>';

                            _html +='<div class="report flex-wrap">';
                            _html +='<div class="jiangzuo">'+v.activity_names+'</div>' ;
                            if(v.activity_status==1){
                                _html +='<div class="signUp2 flex-con">';
                                _html +='<img src="" alt="" class="xian"><未开始</div> </div> </div> </div>';
                            }else if(v.activity_status==2){
                                _html +='<div class="signUp flex-con">';
                                _html +='<img src="__IMG__xian.png" alt="" class="xian">报名中</div> </div> </div> </div>';
                            }else if(v.activity_status==3){
                                _html +='<div class="signUp1 flex-con">';
                                _html +='<img src="__IMG__main1_jin.png" alt="" class="xian">进行中</div> </div> </div> </div>';
                            }else if(v.activity_status==4){
                                _html +='<div class="signUp2 flex-con">';
                                _html +='<img src="" alt="" class="xian">已结束</div> </div> </div> </div>';
                            }
                            $(".upOrDown_data").append(_html);

                        });
//                        $('.upOrDown_data').append(data);
                        // 每次数据加载完，必须重置
                        me.resetload();
                    }
                    $('.cooc').click(function () {
                        var id = $(this).attr('id');
                        location.href = '{:url("First/activitydatail")}?activity_id='+id;
                    });
                },
                error: function(xhr, type){
                    alert('Ajax error!');
                    // 即使加载出错，也得重置
                    me.resetload();
                }
            });
        },
        loadUpFn : function(me){

            page = 1;
            $.ajax({
                url:'{:url("First/ajaxvolunteerdetail")}',
                data:'page='+page,
                type:'POST',
                dataType:'json',
                success: function(data){
                    $('.upOrDown_data').empty();//
                    var datas = data.msg;
                    $.each(datas,function(key,v){
                        var _html='';

                        _html +='<div class="activityDetails flex-wrap underLine2 cooc" id="'+v.id+'" tapmode="acdtive">';
                        _html +='<div class="activityImg">'+
                                '<img src="'+v.activity_img+'" class="showImg">'+
                                '</div>';
                        _html += '<div class="activityContent flex-con">';
                        _html += '<div class="activityTitle aui-ellipsis-1">"'+v.activity_name+'"</div>';
                        _html +='<div class="box">';
                        _html += '<div class="logo1"></div>';
                        _html += '<div class="destination aui-ellipsis-1">"'+v.activity_address+'"</div></div>';
                        _html +='<div class="box"> <div class="logo2"></div>';
                        _html += '<div class="activityTime">"'+v.activity_start_time+'"至"'+v.activity_end_time+'"</div></div>';

                        _html += '<div class="report flex-wrap">';
                        _html += '<div class="jiangzuo">"'+v.activity_names+'"</div> <div class="signUp flex-con">';
                        _html +=  '<img src="__IMG__xian.png" alt="" class="xian">报名中 </div> </div> </div> </div>';
                        $(".upOrDown_data").append(_html);
                    });
                    me.resetload();
                    me.unlock();
                    me.noData(false);
                    $('.cooc').click(function () {
                        var id = $(this).attr('id');
                        location.href = '{:url("First/activitydatail")}?activity_id='+id;
                    });
                },
                error: function(xhr, type){
                    alert('Ajax error!');
                    me.resetload();
                }
            });
        }
    });
</script>

</html>
